﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using Microsoft.Office.Core;
using System.Drawing;

namespace WPFSLVstoDesigner.Base
{
    public class BaseAutoShape : UserControl
    {

        public MsoAutoShapeType AutoShapeType { get; set; }
        public string ShapeName { get; set; }
        #region "Fill"
        public int FillForeColor { get; set; }

        public int FillForeColorB { get { return Color.FromArgb(FillForeColor).R; } }
        public int FillForeColorG { get { return Color.FromArgb(FillForeColor).G; } }
        public int FillForeColorR { get { return Color.FromArgb(FillForeColor).B; } }

        public MsoGradientColorType FillGradientColorType { get; set; }

        #endregion 
        #region "Shadow"
        public MsoShadowType ShadowType { get; set; }
        public int ShadowForeColor { get; set; }

        public int ShadowForeColorB { get { return Color.FromArgb(ShadowForeColor).R; } }
        public int ShadowForeColorG { get { return Color.FromArgb(ShadowForeColor).G; } }
        public int ShadowForeColorR { get { return Color.FromArgb(ShadowForeColor).B; } }


        public float ShadowOffsetX { get; set; }
        public float ShadowOffsetY { get; set; }
        #endregion
        public float ShapeWidth { get; set; }
        public float ShapeHeight { get; set; }

        public MsoTriState HorizontalFlip { get; set; }
    
    } 
}

